<template>
  <div class="whole detailsWhole">
    <div class="crumbs">
      <a-breadcrumb>
        <a-breadcrumb-item v-for="(item, index) in $route.matched" :key="index">
          <span v-if="index + 1 < $route.matched.length">{{
            item.meta.title
          }}</span>
          <router-link
            v-if="index + 1 == $route.matched.length"
            :to="item.path"
            >{{ item.meta.title }}</router-link
          >
        </a-breadcrumb-item>
      </a-breadcrumb>
      <div
        class="returnPrevious"
        @click="returnToPrevious"
      >
        <a-icon type="left" />
        <span>返回</span>
      </div>
    </div>
    <div class="mainPart">
      <div class="personal">
        <div class="personal_left">
          <div class="img">
            <img src="../../../../images/home-details/icon-name.png" alt />
          </div>
          <span class="name">{{ operationMessage.patientName }}</span>
          <span>{{ operationMessage.operationCode }}</span>
          <span class="time">{{ operationMessage.operationDate }}</span>
          <span style="margin-left:50px" v-if="synchroStatus == 0">未开始</span>
          <span style="margin-left:50px;color:green" v-if="synchroStatus == 1">上传中</span>
          <span style="margin-left:50px;color:red" v-if="synchroStatus == 2">已上传</span>
        </div>
        <div class="personal_center">
          <div
            class="personal_center_img3"
            title="综合档案"
            @click="synthesis"
          ></div>
          <div
            class="personal_center_img"
            title="导入"
            @click="importFile"
          ></div>
          <!-- <div
            class="personal_center_img1"
            title="评估"
            @click="assessment"
          ></div> -->
          <div class="personal_center_img2" title="核查" @click="inspect"></div>
        </div>
        <div class="personal_right">
          <div class="personal_right_img" @click="typeClass">
            <img
              v-if="typeClassShow == false"
              src="../../../../images/home-details/icon-thumbnail.png"
              alt
            />
            <img
              v-if="typeClassShow == true"
              src="../../../../images/home-details/icon-thumbnail1.png"
              alt
            />
          </div>
          <div class="personal_right_img1" @click="timeClass">
            <img
              v-if="timeClassShow == false"
              src="../../../../images/home-details/icon-Timelinesort.png"
              alt
            />
            <img
              v-if="timeClassShow == true"
              src="../../../../images/home-details/icon-Timelinesort1.png"
              alt
            />
          </div>
        </div>
      </div>
      <typeClassify
        :operationMessage="operationMessage"
         ref="child"
        v-if="typeClassShow"
      ></typeClassify>
      <timeClassify
        :operationMessage="operationMessage"
        ref="child1"
        v-if="timeClassShow"
      ></timeClassify>
    </div>
    <div class="aModalImportFile" ref="aModalImportFile">
      <a-modal
        class="Amodal"
        v-model="importFileShow"
        :maskClosable="false"
        centered
        keyboard
        okText="提交"
        cancelText="取消"
        :mask="false"
        :getContainer="() => $refs.aModalImportFile"
        title="导入"
        @ok="handleOk"
        @cancel="handleCancel"
      >
        <a-upload
          accept="image/jpeg, image/jpg, image/png, .word, .mp3, .mp4, .MP3, .MP4, .Excel, .xls, .xlsx, .docx, .doc, .ppt, .pptx, .pdf"
          name="icon"
          list-type="picture-card"
          class="avatar-uploader"
          :show-upload-list="false"
          :customRequest="uploadFile"
          :before-upload="beforeUpload"
        >
          <img
            class="importImg"
            v-if="
              (ImportFile && ImportFile.slice(-3) == 'jpg') ||
              ImportFile.slice(-3) == 'peg' ||
              ImportFile.slice(-3) == 'png'
            "
            :src="imgUrl + ImportFile"
            alt="avatar"
          />
          <video class="importImg" v-if="ImportFile && ImportFile.slice(-3) == 'MP4' || ImportFile && ImportFile.slice(-3) == 'mp4'" :src="imgUrl + ImportFile"></video>
          <img
            class="importImg"
            v-if="ImportFile && ImportFile.slice(-3) == 'mp3' || ImportFile && ImportFile.slice(-3) == 'MP3'"
            :src="imgAudio"
            alt="avatar"
          />
          <img
            class="importImg"
            v-if="
              (ImportFile && ImportFile.slice(-3) == 'ocx') ||
              ImportFile.slice(-3) == 'doc' ||
              ImportFile.slice(-3) == 'ord'
            "
            :src="imgFile"
            alt="avatar"
          />
          <img
            class="importImg"
            v-if="
              (ImportFile && ImportFile.slice(-3) == 'xls') ||
              ImportFile.slice(-3) == 'lsx' ||
              ImportFile.slice(-3) == 'cel'
            "
            :src="imgXls"
            alt="avatar"
          />
          <img
            class="importImg"
            v-if="
              (ImportFile && ImportFile.slice(-3) == 'ppt') ||
              ImportFile.slice(-3) == 'ptx' ||
              ImportFile.slice(-3) == 'pdf'
            "
            :src="imgPpt"
            alt="avatar"
          />

          <!-- <video
            v-if="ImportFile && ImportFile.slice(-3) == 'mp4'"
            width="350"
            :preload="preload"
            align="center"
            :controls="controls"
            :autoplay="autoplay"
          >
            <source :src="imgUrl + ImportFile" type="video/mp4" />
          </video> -->
          <div v-if="!ImportFile" class="uploadFile">
            <a-icon
              style="margin-bottom: 20px"
              :type="loading ? 'loading' : 'plus'"
            />
            <div class="ant-upload-text" style="margin-bottom: 10px">
              拖曳上传或点此添加上传文件
            </div>
            <div class="ant-upload-text2">
              <span class="one">支持</span>
              <span class="two" style="color: #1e7eff"
                >word、Excel、mp3、mp4、jpg、png</span
              >
              <span class="three">格式文件</span>
            </div>
          </div>
        </a-upload>
      </a-modal>
    </div>
    <div class="aModalAssessment" ref="aModalAssessment">
      <a-modal
        class="AmodalAssessment"
        v-model="aModalAssessmentShow"
        :maskClosable="false"
        centered
        keyboard
        :mask="false"
        :getContainer="() => $refs.aModalAssessment"
        title="评估"
        :footer="null"
      >
        <div class="top_but">
          <a-button class="but" @click="assessExport">
            <img
              src="../../../../images/home-details/buttonInner-icon/icon-download.png"
              alt
            />
            导出
          </a-button>
        </div>
        <div class="center_message">
          <div class="left">
            <div class="left_one">
              <span class="one">手术code</span>
              <span class="two">{{operationMessage.operationCode}}</span>
            </div>
            <div class="left_two">
              <span class="one">患者名称</span>
              <span class="two">{{operationMessage.patientName}}</span>
            </div>
            <div class="left_three">
              <span class="one">执行医生</span>
              <span class="two">{{operationMessage.doctorName}}</span>
            </div>
            <div class="left_four">
              <span class="one">手术描述</span>
              <span class="two"
                >{{operationMessage.operationExplain}}</span
              >
            </div>
          </div>
          <div class="right">
            <div class="right_one">
              <div class="assess" v-for="(item,index) in assessmentList" :key="index">
                <div class="assess_left">
                  <img :src="imgUrl+item.avatar" alt />
                </div>
                <div class="assess_right">
                  <div class="top">
                    <span class="name">{{item.nickName}}</span>
                    <span class="time">{{item.assessDate}}</span>
                  </div>
                  <div class="bottom">
                    {{item.assess}}
                  </div>
                </div>
              </div>
              <!-- <a-pagination class="assessPagination" @change="pagingChange" v-model="current" size="small" :total="totalCount"/> -->
            </div>
            <div class="right_two">
              <a-form-model
                :model="form"
                :label-col="labelCol"
                :wrapper-col="wrapperCol"
              >
                <a-form-model-item>
                  <a-input v-model="form.assessArea" type="textarea" />
                </a-form-model-item>
                <a-form-model-item :wrapper-col="{ span: 14, offset: 4 }">
                  <a-button type="primary" @click="onSubmit">发送</a-button>
                </a-form-model-item>
              </a-form-model>
            </div>
          </div>
        </div>
      </a-modal>
    </div>
    <div class="aModalInspect" ref="aModalInspect">
      <a-modal
        class="AModalInspect"
        v-model="aModalInspectShow"
        :maskClosable="false"
        keyboard
        :mask="false"
        :getContainer="() => $refs.aModalInspect"
        title="核查"
        okText="保存"
        cancelText="取消"
        @ok="aModalInspectHandleOk"
        @cancel="aModalInspectHandleCancel"
      >
        <div class="AModalInspectTop">
          <div class="top">
            <div class="one">
              <span class="ming">科 别</span>
              <span class="heng">{{operationMessage.departmentName}}</span>
            </div>
            <div class="two">
              <span class="ming" style="width: 60px">患者姓名</span>
              <span class="heng">{{operationMessage.patientName}}</span>
            </div>
            <div class="three">
              <span class="ming" style="width: 30px">性别</span>
              <span class="heng" style="width: 35px">{{operationMessage.sex}}</span>
              <span class="ming" style="width: 30px">年龄</span>
              <span class="heng" style="width: 35px">{{operationMessage.age}}</span>
            </div>
            <div class="four">
              <span class="ming" style="width: 60px">手术编号</span>
              <span class="heng" style="width: 150px">{{operationMessage.operationCode}}</span>
            </div>
          </div>
          <div class="bottom">
            <div class="one">
              <span class="ming" style="width: 60px">麻醉时间</span>
              <span class="heng" style="width:150px;">{{operationMessage.anesthesiaDate}}</span>
            </div>
            <div class="two">
              <span class="ming" style="width: 60px">手术室</span>
              <span class="heng" style="width:60px;">{{operationMessage.operationRoomName}}</span>
            </div>
            <div class="three">
              <span class="ming" style="width: 60px">手术日期</span>
              <span class="heng" style="width: 150px">{{operationMessage.operationDate}}</span>
            </div>
            <div class="four">
              <span class="ming" style="width: 30px">术者</span>
              <span class="heng" style="width: 90px">{{operationMessage.doctorName}}</span>
            </div>
          </div>
        </div>
        <div class="AModalInspectBottom">
          <a-form-model
            :model="form2"
            :label-col="labelCol"
            :wrapper-col="wrapperCol"
          >
            <div class="narcosis">
              <div class="title">
                <img src="../../../../images/home-details/one.png" alt="" />
                <span>麻醉实施前</span>
              </div>
              <div class="check1" v-for="(item,index) in operCheckConfigList" :key="index">
                <a-form-model-item class="aModalCheck1" v-if="item.configType == 1 && item.checkType == 1" :label="item.configTitle">
                  <!-- {{narcosisAloneChecked}} -->
                  <a-radio-group id='aradioGroup' :default-value="Number(index)+item.checked">
                    <a-radio @change="checkboxChange($event,index)" :class="String(index)+'aCheck1'" :value="Number(index)+'是'" name="type">{{ item.configContent[0] }}</a-radio>
                    <a-radio @change="checkboxChange1($event,index)" :class="String(index)+'aCheck2'" :value="Number(index)+'否'" name="type">{{ item.configContent[1] }}</a-radio>
                  </a-radio-group>
                </a-form-model-item>
                <div class="check2">
                  <a-form-model-item v-if="item.configType == 1 && item.checkType == 2">
                    <a-checkbox-group :default-value="narcosisAllChecked">
                      <div class="check2Div">{{item.configTitle}}:</div>
                        <a-checkbox v-for="(item1,index1) in item.configContent" :key="index1" @change="checkboxChangeAll($event,index,index1,item.configTitle,item)" :class="String(index)+'aCheck1'" :value="index1 + item.configTitle" name="type13">
                          {{item1}}
                        </a-checkbox>
                    </a-checkbox-group>
                  </a-form-model-item>
                </div>
              </div>
              <div class="inp">
                <a-form-model-item label="其他" class="inp1">
                  <a-input v-model="form2.otherAnesthesia" />
                </a-form-model-item>
                <a-form-model-item label="麻醉医师">
                  <a-input v-model="form2.anesthesiaAnesthesiaName" />
                </a-form-model-item>
                <a-form-model-item label="手术医生">
                  <a-input v-model="form2.operationAnesthesiaName" />
                </a-form-model-item>
              </div>
            </div>
            <div class="operation">
              <div class="title">
                <img src="../../../../images/home-details/two.png" alt="" />
                <span>手术开始前</span>
              </div>
              <div class="check1" v-for="(item,index) in operCheckConfigList" :key="index">
                <a-form-model-item class="aModalCheck1" v-if="item.configType == 2 && item.checkType == 1" :label="item.configTitle">
                  <a-radio-group :default-value="Number(index) + item.checked">
                    <a-radio @change="checkboxChange($event,index)" :class="String(index)+'aCheck1'" :value="index+'是'" name="type">{{ item.configContent[0] }}</a-radio>
                    <a-radio @change="checkboxChange1($event,index)" :class="String(index)+'aCheck2'" :value="index+'否'" name="type">{{ item.configContent[1] }}</a-radio>
                  </a-radio-group>
                </a-form-model-item>
                <div class="check2 operationcheck2">
                  <a-form-model-item v-if="item.configType == 2 && item.checkType == 2">
                    <a-checkbox-group :default-value="operationAllChecked">
                      <div class="check2Div">{{item.configTitle}}:</div>
                        <a-checkbox v-for="(item1,index1) in item.configContent" :key="index1" @change="checkboxChangeAll($event,index,index1,item.configTitle,item)" :class="String(index)+'aCheck1'" :value="index1 + item.configTitle" name="type17">
                          {{item1}}
                        </a-checkbox>
                    </a-checkbox-group>
                  </a-form-model-item>
                </div>
              </div>
              <div class="inp">
                <a-form-model-item label="其他" class="inp1">
                  <a-input v-model="form2.otherStart" />
                </a-form-model-item>
                <a-form-model-item label="麻醉医师">
                  <a-input v-model="form2.anesthesiaStartName" />
                </a-form-model-item>
                <a-form-model-item label="手术医生">
                  <a-input v-model="form2.operationStartName" />
                </a-form-model-item>
              </div>
            </div>
            <div class="leave">
              <div class="title">
                <img src="../../../../images/home-details/three.png" alt="" />
                <span>患者离开手术室前</span>
              </div>
              <div class="check1" v-for="(item,index) in operCheckConfigList" :key="index">
                <a-form-model-item class="aModalCheck1" v-if="item.configType == 3 && item.checkType == 1" :label="item.configTitle">
                  <a-radio-group :default-value="Number(index) + item.checked">
                    <a-radio @change="checkboxChange($event,index,item)" :class="String(index)+'aCheck1'" :value="index+'是'" name="type">{{ item.configContent[0] }}</a-radio>
                    <a-radio @change="checkboxChange1($event,index,item)" :class="String(index)+'aCheck2'" :value="index+'否'" name="type">{{ item.configContent[1] }}</a-radio>
                  </a-radio-group>
                </a-form-model-item>
                <div class="check2">
                  <a-form-model-item  v-if="item.configType == 3 && item.checkType == 2">
                    <a-checkbox-group :default-value="leaveAllChecked">
                      <div class="check2Div">{{item.configTitle}}:</div>
                      <a-checkbox v-for="(item1,index1) in item.configContent" :key="index1" @change="checkboxChangeAll($event,index,index1,item.configTitle,item)" :class="String(index)+'aCheck1'" :value="index1 + item.configTitle" name="type24">{{item1}}</a-checkbox>
                    </a-checkbox-group>
                  </a-form-model-item>
                </div>
              </div>
              <div class="inp">
                <a-form-model-item label="其他" class="inp1">
                  <a-input v-model="form2.otherEnd" />
                </a-form-model-item>
                <a-form-model-item label="麻醉医师">
                  <a-input v-model="form2.anesthesiaEndName" />
                </a-form-model-item>
                <a-form-model-item label="手术医生">
                  <a-input v-model="form2.operationEndName" />
                </a-form-model-item>
              </div>
            </div>
          </a-form-model>
        </div>
      </a-modal>
    </div>
  </div>
</template>

<script>
import typeClassify from "./typeClassify.vue";
import timeClassify from "./timeClassify.vue";
import uploadApi from "../../../api/uploadImage/uploadImage.js";
import api from "../../../api/operation/operation.js";
import moment from "moment";
// import InfiniteLoading from 'vue-infinite-loading';
// 删除数组中的指定值
Array.prototype.remove = function(val) {
    var index = this.indexOf(val);
    if (index > -1) {
        this.splice(index, 1);
    }
}
// 获取字符串中 指定字符的前面 与 后面
function getStr(string, str) {
    var str_before = string.split(str)[0];
    var str_after = string.split(str)[1];
    var obj = {
        goods: str_before,
        goods_id: str_after
    };
    return obj;
}
export default {
  components: {
    typeClassify,
    timeClassify,
  },
  data() {
    return {
      synchroStatus:'',
      aaa:false,
      checkAllArr1:[],
      asdsad:[],
      narcosisAloneChecked:[],
      narcosisAllChecked:[],
      operationAloneChecked:[],
      operationAllChecked:[],
      leaveAloneChecked:[],
      leaveAllChecked:[],
      current: 1,
      totalCount: null,
      labelCol: { span: 4 },
      wrapperCol: { span: 14 },
      img: require("../../../../images/home-showAll/bg-imgError.png"),
      imgFile: require("../../../../images/home-details/file-icon/icon-Word.png"),
      imgAudio: require("../../../../images/home-details/file-icon/icon-audio.png"),
      imgPpt: require("../../../../images/home-details/file-icon/icon-ppt.png"),
      imgXls: require("../../../../images/home-details/file-icon/icon-xls.png"),
      imgUrl: "",
      SurgeryNum: {},
      operationInfo: [],
      operationMessage: {},
      operCheckConfigList:[],
      current: 0, //复制成功提示显示或者隐藏
      shadowShow: false,
      showNum: 0,
      operationMessageId: "",
      assessmentList:[],
      typeClassShow: true,
      timeClassShow: false,
      importFileShow: false,
      loading: false,
      ImportFile: "",
      preload: "auto", //  建议浏览器是否应在<video>加载元素后立即开始下载视频数据。
      controls: true, // 确定播放器是否具有用户可以与之交互的控件。没有控件，启动视频播放的唯一方法是使用autoplay属性或通过Player API。
      autoplay: "",
      aModalAssessmentShow: false,
      aModalInspectShow: false,
      form: {
        assessArea: "",
      },
      labelCol: { span: 4 },
      wrapperCol: { span: 14 },
      other: "",
      checkArr:[],
      form2: {
        checkAnesthesiaResult:[],  //麻醉实施前
        checkStartResult:[],    //手术开始前
        checkEndResult:[],       //患者离开前

        anesthesiaAnesthesiaName:'',  //麻醉医生(麻醉实施前)
        anesthesiaStartName:'',  //麻醉医生（手术开始前）
        anesthesiaEndName:'',  //麻醉医生（患者离开手术室）

        operationAnesthesiaName:'',   //手术医生（麻醉实施前）
        operationStartName:'',    //手术医生（手术开始前）
        operationEndName:'',    //手术医生（患者离开手术室）

        otherAnesthesia:'',   //其他（麻醉实施前）
        otherStart:'',    //其他（手术开始前）
        otherEnd:'',    //其他（患者离开手术室）
      },
    };
  },
  created() {
    this.imgUrl = this.$config.imgUrl;
  },
  mounted() {
    let _this = this;
    this.synchroStatus = this.$router.currentRoute.query.synchroStatus;
    this.operationMessageId = this.$router.currentRoute.query.id;
    this.operationGetInfo()
    let aaa = document.querySelectorAll('.detailsWhole .ant-btn.ant-btn-primary');
    this.operationCheckInfo()
  },
  methods: {
    pagingChange(page, pageSize) {
      this.current = page;
      this.getAssessment(page)
    },
    // 手术信息
    operationGetInfo(){
      api.operationGetInfo(null,this.operationMessageId).then(res=>{
        this.operationMessage = res.data;
        if(this.operationMessage.sex == 0) {
          this.operationMessage.sex = '男'
        }
        if(this.operationMessage.sex == 1) {
          this.operationMessage.sex = '女'
        }
        let getTime = new Date().getTime();
            getTime = moment(
                getTime
            ).format("YYYY");
            this.operationMessage.birthday = moment(
                this.operationMessage.birthday
            ).format("YYYY");
        this.operationMessage.age = getTime - this.operationMessage.birthday;
        this.operationMessage.operationDate = moment(
            this.operationMessage.operationDate
          ).format("YYYY-MM-dd HH:mm:ss");
        console.log(this.operationMessage)
      })
    },
    refresh(){
      let _this = this;
      if(_this.typeClassShow == true) {
        _this.typeClassShow= false
        _this.$nextTick(()=>{
            _this.typeClassShow = true
        })
      }else if(_this.timeClassShow == true) {
        _this.timeClassShow= false
        _this.$nextTick(()=>{
            _this.timeClassShow = true
        })
      }
    },
    typeClass() {
      this.typeClassShow = true;
      this.timeClassShow = false;
    },
    timeClass() {
      this.timeClassShow = true;
      this.typeClassShow = false;
    },
    returnToPrevious() {
      this.$router.go(-1); //返回上一层
    },
    // 评估
    assessment() {
      this.aModalAssessmentShow = true;
      this.getAssessment()
    },
    // 评估列表
    getAssessment(pageNum){
      let _this = this;
      let operationId = _this.operationMessageId;
      api.getAssessmentList(null,{operationId,pageNum}).then(res=>{
        if(res.code == 200) {
          _this.totalCount = res.data.totalCount;
          _this.assessmentList = res.data.data;
          _this.assessmentList.forEach(e=>{
            e.assessDate = moment(
            e.assessDate
          ).format("YYYY-MM-DD HH:MM:SS");
          })
        }
      })
    },

    synthesis(){
      let obj = {}
        obj.filter = this.operationMessageId
        this.aAlertShow = false;
        this.$router.push({
          path: "/searchContent",
          query: obj,
        });
    },

    // 核查
    inspect() {
      let _this = this;
      this.aModalInspectShow = true;
      this.operCheckConfig();
      this.operationCheckInfo();
      _this.$nextTick(()=>{
        this.operationCheckInfo();
      })
    setTimeout(function () {
          _this.narcosisAllChecked = _this.narcosisAllChecked
          _this.operationAloneChecked = _this.operationAloneChecked
          _this.operationAllChecked = _this.operationAllChecked
          _this.leaveAloneChecked = _this.leaveAloneChecked
          _this.leaveAllChecked = _this.leaveAllChecked
      }, 1000);
    },
    // 手术核查配置列表
    operCheckConfig(){
      let _this = this;
      api.operationCheckConfig().then(res=>{

        if(res.code == 200) {
          _this.operCheckConfigList = res.data;
          console.log("operCheckConfigList",this.operCheckConfigList)
          let checkAnesthesiaResult = []
          let checkStartResult = []
          let checkEndResult = []
          _this.operCheckConfigList.forEach(e=>{
            e.configContent = e.configContent.split(",");
            e.value = null;
            e.values = null;
            e.key = null;
            if(e.configType == 1) {
              e.anesthesiaAnesthesiaName = ''
              e.otherAnesthesia = ''
              e.operationAnesthesiaName = ''
              checkAnesthesiaResult.push(e)
            }
            if(e.configType == 2) {
              e.anesthesiaStartName = ''
              e.otherStart = ''
              e.operationStartName = ''
              checkStartResult.push(e)
            }
            if(e.configType == 3) {
              e.anesthesiaEndName = ''
              e.otherEnd = ''
              e.operationEndName = ''
              checkEndResult.push(e)
            }
          })
          _this.form2.checkAnesthesiaResult = checkAnesthesiaResult
          _this.form2.checkStartResult = checkStartResult
          _this.form2.checkEndResult = checkEndResult
        }
      })
    },
    // 手术核查信息
    operationCheckInfo(){
      let _this = this;
      let operationId = _this.operationMessageId;
      api.operationCheckInfo(null,operationId).then(res=>{
        if(res.code == 200) {
          let operCheckInfo = res.data;
          operCheckInfo.checkAnesthesiaResult = JSON.parse(operCheckInfo.checkAnesthesiaResult)
          operCheckInfo.checkStartResult = JSON.parse(operCheckInfo.checkStartResult)
          operCheckInfo.checkEndResult = JSON.parse(operCheckInfo.checkEndResult)
          // _this.form2.checkAnesthesiaResult = operCheckInfo.checkAnesthesiaResult;
          // _this.form2.checkStartResult = operCheckInfo.checkStartResult;
          // _this.form2.checkEndResult = operCheckInfo.checkEndResult;
          _this.form2.anesthesiaAnesthesiaName = operCheckInfo.anesthesiaAnesthesiaName;
          _this.form2.anesthesiaEndName = operCheckInfo.anesthesiaEndName;
          _this.form2.anesthesiaMode = operCheckInfo.anesthesiaMode;
          _this.form2.anesthesiaStartName = operCheckInfo.anesthesiaStartName;
          _this.form2.birthday = operCheckInfo.birthday;
          _this.form2.category = operCheckInfo.category;
          _this.form2.id = operCheckInfo.id;
          _this.form2.inpatientNumber = operCheckInfo.inpatientNumber;
          _this.form2.operationAnesthesiaName = operCheckInfo.operationAnesthesiaName;
          _this.form2.operationDate = operCheckInfo.operationDate;
          _this.form2.operationEndName = operCheckInfo.operationEndName;
          _this.form2.operationMode = operCheckInfo.operationMode;
          _this.form2.operationStartName = operCheckInfo.operationStartName;
          _this.form2.operator = operCheckInfo.operator;
          _this.form2.otherAnesthesia = operCheckInfo.otherAnesthesia;
          _this.form2.otherEnd = operCheckInfo.otherEnd;
          _this.form2.otherStart = operCheckInfo.otherStart;
          _this.form2.patientName = operCheckInfo.patientName;
          _this.form2.sex = operCheckInfo.sex;
          let operCheckConfigList = _this.operCheckConfigList;
          let form2 = _this.form2;
          // console.log(operCheckInfo.checkAnesthesiaResult);
          // console.log(operCheckInfo.checkStartResult);
          // console.log(operCheckInfo.checkEndResult);
          // console.log(_this.form2);return
          let narcosisAloneChecked = []
          let narcosisAllChecked = []
          let operationAloneChecked = []
          let operationAllChecked = []
          let leaveAloneChecke = []
          let leaveAllChecked = []
          operCheckInfo.checkAnesthesiaResult.forEach((e,v)=>{
            if(e.value == 1){
             narcosisAloneChecked.push(v+'是');
            }
            if(e.value == 2){
             narcosisAloneChecked.push(v+'否');
            }
            _this.narcosisAloneChecked = narcosisAloneChecked
            if(e.values!=null) {
              let strEval = []
              for(let i=0;i<e.values.length;i++) {
                // console.log(e.values)
                // console.log(e.values.replace(',','').length)
                if(e.values.replace(',','').length == 1) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                }else if(e.values.replace(',','').length == 2) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                }else if(e.values.replace(',','').length == 3) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                }else if(e.values.replace(',','').length == 4) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                }else if(e.values.replace(',','').length == 5) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                }else if(e.values.replace(',','').length == 6) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                }else if(e.values.replace(',','').length == 7) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                  if(e.values.replace(',','')[6] == 1) {
                    strEval.push(6+e.name)
                  }
                }else if(e.values.replace(',','').length == 8) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                  if(e.values.replace(',','')[6] == 1) {
                    strEval.push(6+e.name)
                  }
                  if(e.values.replace(',','')[7] == 1) {
                    strEval.push(7+e.name)
                  }
                }else if(e.values.replace(',','').length == 9) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                  if(e.values.replace(',','')[6] == 1) {
                    strEval.push(6+e.name)
                  }
                  if(e.values.replace(',','')[7] == 1) {
                    strEval.push(7+e.name)
                  }
                  if(e.values.replace(',','')[8] == 1) {
                    strEval.push(8+e.name)
                  }
                }else if(e.values.replace(',','').length == 10) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                  if(e.values.replace(',','')[6] == 1) {
                    strEval.push(6+e.name)
                  }
                  if(e.values.replace(',','')[7] == 1) {
                    strEval.push(7+e.name)
                  }
                  if(e.values.replace(',','')[8] == 1) {
                    strEval.push(8+e.name)
                  }
                  if(e.values.replace(',','')[9] == 1) {
                    strEval.push(9+e.name)
                  }
                }
                // if(e.values[i] != ',') {
                //   console.log(e.values[i])
                //   narcosisAllChecked.push(String(e.values[i]+e.name))
                // }
              }
              narcosisAllChecked = strEval
              let newArr = [...new Set(strEval)];
              _this.narcosisAllChecked = newArr
              // setTimeout(function () {
              //     // 这里就是处理的事件
              //     _this.narcosisAloneChecked = narcosisAloneChecked
              //     let newArr = [...new Set(strEval)];
              //     _this.narcosisAllChecked = newArr
              // }, 2000);
            }

            operCheckConfigList.forEach((el,va)=>{
              if(el.configTitle == e.name && el.configType == 1) {
                el.value = e.value;
                el.values = e.values
                if(el.value == 1) {
                  el.checked = '是'
                  el.checkIndex = va
                }
                if(el.value == 2) {
                  el.checked = '否'
                  el.checkIndex = va
                }
              }
              _this.form2.checkAnesthesiaResult.forEach((el,va)=>{
                if(el.configTitle == e.name && el.configType == 1) {
                  el.value = e.value;
                  el.values = e.values
                }
              })
            })
          })
          operCheckInfo.checkStartResult.forEach((e,v)=>{
            if(e.value == 1){
             operationAloneChecked.push(v+'是');
             _this.operationAloneChecked = operationAloneChecked
            }
            if(e.value == 2){
             operationAloneChecked.push(v+'否');
             _this.operationAloneChecked = operationAloneChecked
            }
            if(e.values!=null) {
              let strEval = []
              for(let i=0;i<e.values.length;i++) {
                // console.log(e.values)
                // console.log(e.values.replace(',','').length)
                if(e.values.replace(',','').length == 1) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                }else if(e.values.replace(',','').length == 2) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                }else if(e.values.replace(',','').length == 3) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                }else if(e.values.replace(',','').length == 4) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                }else if(e.values.replace(',','').length == 5) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                }else if(e.values.replace(',','').length == 6) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                }else if(e.values.replace(',','').length == 7) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                  if(e.values.replace(',','')[6] == 1) {
                    strEval.push(6+e.name)
                  }
                }else if(e.values.replace(',','').length == 8) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                  if(e.values.replace(',','')[6] == 1) {
                    strEval.push(6+e.name)
                  }
                  if(e.values.replace(',','')[7] == 1) {
                    strEval.push(7+e.name)
                  }
                }else if(e.values.replace(',','').length == 9) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                  if(e.values.replace(',','')[6] == 1) {
                    strEval.push(6+e.name)
                  }
                  if(e.values.replace(',','')[7] == 1) {
                    strEval.push(7+e.name)
                  }
                  if(e.values.replace(',','')[8] == 1) {
                    strEval.push(8+e.name)
                  }
                }else if(e.values.replace(',','').length == 10) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                  if(e.values.replace(',','')[6] == 1) {
                    strEval.push(6+e.name)
                  }
                  if(e.values.replace(',','')[7] == 1) {
                    strEval.push(7+e.name)
                  }
                  if(e.values.replace(',','')[8] == 1) {
                    strEval.push(8+e.name)
                  }
                  if(e.values.replace(',','')[9] == 1) {
                    strEval.push(9+e.name)
                  }
                }
                // if(e.values[i] != ',') {
                //   console.log(e.values[i])
                //   narcosisAllChecked.push(String(e.values[i]+e.name))
                // }
              }
              operationAllChecked = strEval
              _this.operationAloneChecked = operationAloneChecked
              let newArr1 = [...new Set(strEval)];
              _this.operationAllChecked = newArr1
              setInterval(() => _this.operationAllChecked = newArr1,"1000")
            }
            operCheckConfigList.forEach((el,va)=>{
              if(el.configTitle == e.name && el.configType == 2) {
                el.value = e.value;
                el.values = e.values
                if(el.value == 1) {
                  el.checked = '是'
                  el.checkIndex = va
                }
                if(el.value == 2) {
                  el.checked = '否'
                  el.checkIndex = va
                }
              }
            })
            form2.checkStartResult.forEach((el,va)=>{
              if(el.configTitle == e.name && el.configType == 2) {
                el.value = e.value;
                el.values = e.values
              }
            })
          })
          operCheckInfo.checkEndResult.forEach((e,v)=>{
            if(e.value == 1){
             leaveAloneChecked.push(v+'是');
             _this.leaveAloneChecked = leaveAloneChecked
            }
            if(e.value == 2){
             leaveAloneChecked.push(v+'否');
             _this.leaveAloneChecked = leaveAloneChecked
            }
            if(e.values!=null) {
              let strEval = []
              for(let i=0;i<e.values.length;i++) {
                // console.log(e.values)
                // console.log(e.values.replace(',','').length)
                if(e.values.replace(',','').length == 1) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                }else if(e.values.replace(',','').length == 2) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                }else if(e.values.replace(',','').length == 3) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                }else if(e.values.replace(',','').length == 4) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                }else if(e.values.replace(',','').length == 5) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                }else if(e.values.replace(',','').length == 6) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                }else if(e.values.replace(',','').length == 7) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                  if(e.values.replace(',','')[6] == 1) {
                    strEval.push(6+e.name)
                  }
                }else if(e.values.replace(',','').length == 8) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                  if(e.values.replace(',','')[6] == 1) {
                    strEval.push(6+e.name)
                  }
                  if(e.values.replace(',','')[7] == 1) {
                    strEval.push(7+e.name)
                  }
                }else if(e.values.replace(',','').length == 9) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                  if(e.values.replace(',','')[6] == 1) {
                    strEval.push(6+e.name)
                  }
                  if(e.values.replace(',','')[7] == 1) {
                    strEval.push(7+e.name)
                  }
                  if(e.values.replace(',','')[8] == 1) {
                    strEval.push(8+e.name)
                  }
                }else if(e.values.replace(',','').length == 10) {
                  if(e.values.replace(',','')[0] == 1) {
                    strEval.push(0+e.name)
                  }
                  if(e.values.replace(',','')[1] == 1) {
                    strEval.push(1+e.name)
                  }
                  if(e.values.replace(',','')[2] == 1) {
                    strEval.push(2+e.name)
                  }
                  if(e.values.replace(',','')[3] == 1) {
                    strEval.push(3+e.name)
                  }
                  if(e.values.replace(',','')[4] == 1) {
                    strEval.push(4+e.name)
                  }
                  if(e.values.replace(',','')[5] == 1) {
                    strEval.push(5+e.name)
                  }
                  if(e.values.replace(',','')[6] == 1) {
                    strEval.push(6+e.name)
                  }
                  if(e.values.replace(',','')[7] == 1) {
                    strEval.push(7+e.name)
                  }
                  if(e.values.replace(',','')[8] == 1) {
                    strEval.push(8+e.name)
                  }
                  if(e.values.replace(',','')[9] == 1) {
                    strEval.push(9+e.name)
                  }
                }
                // if(e.values[i] != ',') {
                //   console.log(e.values[i])
                //   narcosisAllChecked.push(String(e.values[i]+e.name))
                // }
              }
              leaveAllChecked = strEval
              _this.leaveAloneChecke = leaveAloneChecke
              let newArr2 = [...new Set(strEval)];
              _this.leaveAllChecked = newArr2
              setInterval(() => _this.leaveAllChecked = newArr2,"1000")
            }
            operCheckConfigList.forEach((el,va)=>{
              if(el.configTitle == e.name && el.configType == 3) {
                el.value = e.value;
                el.values = e.values
                if(el.value == 1) {
                  el.checked = '是'
                  el.checkIndex = va
                }
                if(el.value == 2) {
                  el.checked = '否'
                  el.checkIndex = va
                }
              }
            })
            form2.checkEndResult.forEach((el,va)=>{
              if(el.configTitle == e.name && el.configType == 3) {
                el.value = e.value;
                el.values = e.values
              }
            })
          })

          _this.narcosisAloneChecked.forEach((e,v)=>{
            //console.log(e.substr(0,1))

            let yesOn = e.substr(1,2)
            //console.log(yesOn)
            if(yesOn == '是') {
              let abc = document.getElementsByClassName(`${e.substr(0,1)}aCheck1`)
              //console.log(abc)
              for (let item of abc) {
                  //console.log(item.checked);
              }

            }else if(yesOn == '否') {
              let abc = document.getElementsByClassName(`${e.substr(0,1)}aCheck2`)
              //console.log(abc)
            }


          })
        }
      })
    },
    checkboxChange(e,index){
      let _this = this;
      let aCheck1 = document.getElementsByClassName(`${index}aCheck1`)[0].__vue__;
      let aCheck2 = document.getElementsByClassName(`${index}aCheck2`)[0].__vue__;
      let checkAnesthesiaResult = _this.operCheckConfigList;
      checkAnesthesiaResult.forEach((el,va)=>{
        if(va == index && e.target.checked == true && e.target.value == `${index}是`) {
          el.value=1;
        }
        if(va == index && e.target.checked == false && e.target.value == `${index}是`) {
          el.value=null;
        }
      })
    },
    checkboxChange1(e,index){
      let _this = this;
      let aCheck1 = document.getElementsByClassName(`${index}aCheck1`)[0].__vue__;
      let aCheck2 = document.getElementsByClassName(`${index}aCheck2`)[0].__vue__;

      let checkAnesthesiaResult = _this.operCheckConfigList;
      checkAnesthesiaResult.forEach((el,va)=>{
        if(va == index && e.target.checked == true && e.target.value == `${index}否`) {
          el.value=2;
        }
        if(va == index && e.target.checked == false && e.target.value == `${index}否`) {
          el.value=null;
        }
      })
    },

    checkboxChangeAll(e,index,index1,item1,item){
      let _this = this;
      let checkAnesthesiaResult = _this.operCheckConfigList;
      _this.checkAllArr1 = new Array(item.configContent.length);
      checkAnesthesiaResult.forEach((el,va)=>{
        if(va == index && e.target.checked == true && e.target.value == index1 + item.configTitle) {
          for(let i=0;i<_this.checkAllArr1.length;i++) {
            if(_this.checkAllArr1[i] == null) {
              _this.checkAllArr1[i] = '0';
            }
          };
          for(let i=0;i<el.configContent.length;i++) {
            if(i == index1) {
              _this.asdsad.push(index +":" + el.configContent[i]+ ',' + i)
            }
          };
          for(let i=0;i<_this.asdsad.length;i++) {
            let obj = getStr(_this.asdsad[i], ':');
            let obj1 = getStr(_this.asdsad[i], ',');
            if(index == obj.goods) {
              _this.checkAllArr1[obj1.goods_id] = '1';
            }
          };
          el.values = _this.checkAllArr1.join(",")
        };
        if(va == index && e.target.checked == false && e.target.value == index1 + item.configTitle) {
          for(let i=0;i<_this.checkAllArr1.length;i++) {
            if(_this.checkAllArr1[i] == null) {
              _this.checkAllArr1[i] = '0';
            }
          };
          for(let i=0;i<el.configContent.length;i++) {
            if(i == index1) {
              _this.asdsad.remove(index +":" + el.configContent[i]+ ',' + i);
            }
          };
          for(let i=0;i<_this.asdsad.length;i++) {
            let obj = getStr(_this.asdsad[i], ':');
            let obj1 = getStr(_this.asdsad[i], ',');
            if(index == obj.goods) {
              _this.checkAllArr1[obj1.goods_id] = '1';
            }
          }
          el.values = _this.checkAllArr1.join(",")
        }
      })
    },
    // 核查提交按钮
    aModalInspectHandleOk() {
      this.form2.checkAnesthesiaResult.forEach((el,va)=>{
        delete el.checkType
        delete el.configContent
        delete el.configType
        delete el.anesthesiaAnesthesiaName
        delete el.operationAnesthesiaName
        delete el.otherAnesthesia
        el.name = el.configTitle
        delete el.configTitle
      })
      this.form2.checkEndResult.forEach((el,va)=>{
        delete el.checkType
        delete el.configContent
        delete el.configType
        delete el.anesthesiaEndName
        delete el.operationEndName
        delete el.otherEnd
        el.name = el.configTitle
        delete el.configTitle
      })
      this.form2.checkStartResult.forEach((el,va)=>{
        delete el.checkType
        delete el.configContent
        delete el.configType
        delete el.anesthesiaStartName
        delete el.operationStartName
        delete el.otherStart
        el.name = el.configTitle
        delete el.configTitle
      })
      this.form2.checkAnesthesiaResult = JSON.stringify(this.form2.checkAnesthesiaResult)
      this.form2.checkEndResult = JSON.stringify(this.form2.checkEndResult)
      this.form2.checkStartResult = JSON.stringify(this.form2.checkStartResult)
      this.form2.operationId = this.operationMessageId;
      let data = this.form2
      console.log("submit!", data);
      api.operationCheckSave(null,data).then(res=>{
        if(res.code == 200) {
          this.$message.success("保存成功");
          this.aModalInspectShow = false;
          this.operationGetInfo()
          this.operationCheckInfo();
        }else{
          this.$message.error("保存成功");
          this.aModalInspectShow = false;
          this.operationGetInfo()
          this.operationCheckInfo();
        }
      })
    },
    // 核查取消按钮
    aModalInspectHandleCancel() {
      let _this = this;
      // _this.narcosisAloneChecked = [];
      // _this.narcosisAllChecked=[];
      // _this.operationAloneChecked=[];
      // _this.operationAllChecked=[];
      // _this.leaveAloneChecked=[];
      // _this.leaveAllChecked=[];
      // _this.form2.checkAnesthesiaResult=[];  //麻醉实施前
      // _this.form2.checkStartResult=[];   //手术开始前
      // _this.form2.checkEndResult=[];      //患者离开前
      // _this.form2.anesthesiaAnesthesiaName='';  //麻醉医生(麻醉实施前)
      // _this.form2.anesthesiaStartName='';  //麻醉医生（手术开始前）
      // _this.form2.anesthesiaEndName='';  //麻醉医生（患者离开手术室）
      // _this.form2.operationAnesthesiaName='';   //手术医生（麻醉实施前）
      // _this.form2.operationStartName='';    //手术医生（手术开始前）
      // _this.form2.operationEndName='';    //手术医生（患者离开手术室）
      // _this.form2.otherAnesthesia='';   //其他（麻醉实施前）
      // _this.form2.otherStart='';    //其他（手术开始前）
      // _this.form2.otherEnd='';   //其他（患者离开手术室）
      _this.aModalInspectShow = false;
      this.operationGetInfo()
      this.operationCheckInfo();
    },
    // 导入文件
    importFile() {
      this.importFileShow = true;
    },
    // 导入文件提交按钮
    handleOk(e) {
      //this.importFileShow = false;
      let ImportFile = this.ImportFile;
      let obj = {};
      let fileList = [];
      fileList.push(ImportFile);
      obj.fileList = fileList;
      obj.operationId = this.operationMessageId;
      api.importOperationFile(null, obj).then((res) => {
        if (res.code == 200) {
          this.importFileShow = false;
          this.operationGetInfo()
          this.refresh()
          if(this.typeClassShow == true) {
            this.$refs.child.childMethods()
          }else if(this.timeClassShow == true) {
            this.$refs.child1.childMethods1()
          }
          this.$message.success("导入成功");
        }
      });
      this.ImportFile = ''
    },
    // 导入文件取消按钮
    handleCancel(e) {
      this.importFileShow = false;
      this.ImportFile = ''
    },
    //文件类型与大小
    beforeUpload(file) {
      let flieArr = file.name.split(".");
      let fileaccept = [
        "doc",
        "docx",
        "word",
        "Excel",
        "mp3",
        'MP3',
        "mp4",
        'MP4',
        "jpg",
        "png",
        "jpeg",
        "ppt",
        "pptx",
        "pdf",
        "xls",
        "xlsx"
      ];
      let suffix = flieArr[flieArr.length - 1];

      if(fileaccept.indexOf(suffix) <= -1) {
          this.$message.error("只能上传word、Excel、mp3、mp4、jpg、png、ppt、pdf的文件!");
      }
      let isLt100M = file.size / 1024 / 1024 < 100;
      if (!isLt100M) {
        this.$message.error("不能大于100MB!");
      }
      return fileaccept && isLt100M;
    },
    // 上传文件
    uploadFile(file) {
      let _this = this;
      let formData = new FormData();
      formData.append("chunk", file.file);
      formData.append("hash", file.file.uid);
      formData.append("filename", file.file.name);
      let operationMessageId = this.operationMessageId;
      uploadApi.uploadOperationFile(null, operationMessageId, formData).then(
        (res) => {
          if (res.code == 200) {
            _this.ImportFile = res.data;
            _this.loading = false;
          }
        },
        (err) => {
          this.loading = false;
        }
      );
    },
    // 评估评论提交按钮
    onSubmit() {
      let _this = this;
      let obj = {};
      obj.assess = _this.form.assessArea;
      obj.operationId = _this.operationMessageId;
      api.assessmentSave(null,obj).then(res=>{
        if(res.code == 200) {
          _this.getAssessment()
          _this.form.assessArea = ''
        }
      })
    },
    // 评估导出
    assessExport(){
      let _this = this;
      let operationId = _this.operationMessageId;
      api.assessmentExport(null,operationId).then(res=>{
        const blob = new Blob([res], {
            type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
          });
          const objectUrl = URL.createObjectURL(blob);
          const a = document.createElement("a");
          a.href = objectUrl;
          a.download = _this.operationMessage.operationCode+".xlsx";
          a.click();
      })
    }
  },
};
</script>

<style lang="scss" scoped>
.whole {
  .crumbs {
    width: 1560px;
    display: flex;
    margin-top: 14px;
    align-items: center;
    justify-content: space-between;
    margin-left: 30px;
    a,
    area,
    button,
    [role="button"],
    input:not([type="range"]),
    label,
    select,
    summary,
    textarea,
    .ant-breadcrumb {
      font-family: MicrosoftYaHei;
      font-size: 18px;
      font-weight: normal;
      font-stretch: normal;
      letter-spacing: 0px;
      color: #4d4d4d;
    }
    .ant-breadcrumb > span:last-child a {
      font-family: MicrosoftYaHei;
      font-size: 18px;
      font-weight: normal;
      letter-spacing: 0px;
      color: #1e7eff;
    }
    .returnPrevious {
      margin-right: 15px;
      color: #0078B6;
      width: 60px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 18px;
      cursor: pointer;
      span {
        line-height: 20px;
      }
    }
    .returnPrevious:hover {
      color: #3fbfff;
    }
  }
  .mainPart {
    width: 1560px;
    margin-top: 17px;
    margin-left: 30px;
    .personal {
      width: 100%;
      height: 50px;
      opacity: 0.7;
      background: #fff;
      display: flex;
      justify-content: space-between;
      .personal_left {
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        .img {
          margin-left: 20px;
          width: 24px;
          height: 24px;
          img {
            width: 100%;
            height: 100%;
          }
        }
        .name {
          font-family: MicrosoftYaHei-Bold;
          font-size: 20px;
          font-weight: normal;
          font-stretch: normal;
          letter-spacing: 0px;
          color: #333333;
          margin: 0 22px 0 10px;
        }
        span {
          font-family: MicrosoftYaHei;
          font-size: 16px;
          font-weight: normal;
          font-stretch: normal;
          letter-spacing: 0px;
          color: #7a7a7a;
        }
        .time {
          margin-left: 33px;
        }
      }
      .personal_center {
        width: 164px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin-left: 700px;
        .personal_center_img {
          cursor: pointer;
          width: 24px;
          height: 24px;
          background-image: url(../../../../images/home-details/icon-import.png);
          background-size: cover;
          background-size: 100% 100%;
        }
        .personal_center_img:hover {
          cursor: pointer;
          width: 24px;
          height: 24px;
          background-image: url(../../../../images/home-details/icon-import1.png);
          background-size: cover;
          background-size: 100% 100%;
        }
        .personal_center_img1 {
          cursor: pointer;
          width: 24px;
          height: 24px;
          background-image: url(../../../../images/home-details/icon-analyse.png);
          background-size: cover;
          background-size: 100% 100%;
        }
        .personal_center_img1:hover {
          cursor: pointer;
          width: 24px;
          height: 24px;
          background-image: url(../../../../images/home-details/icon-analyse1.png);
          background-size: cover;
          background-size: 100% 100%;
        }
        .personal_center_img2 {
          cursor: pointer;
          width: 24px;
          height: 24px;
          img {
            width: 100%;
            height: 100%;
          }
        }
        .personal_center_img2 {
          cursor: pointer;
          width: 28px;
          height: 28px;
          background-image: url(../../../../images/home-details/icon-inspect1.png);
          background-size: cover;
          background-size: 100% 100%;
        }
        .personal_center_img2:hover {
          width: 28px;
          height: 28px;
          background-image: url(../../../../images/home-details/icon-inspect2.png);
          background-size: cover;
          background-size: 100% 100%;
        }
        .personal_center_img3 {
          cursor: pointer;
          width: 26px;
          height: 26px;
          background-image: url(../../../../images/home-details/synthesis.png);
          background-size: cover;
          background-size: 100% 100%;
        }
        .personal_center_img3:hover {
          width: 26px;
          height: 26px;
          background-image: url(../../../../images/home-details/synthesis1.png);
          background-size: cover;
          background-size: 100% 100%;
        }
      }
      .personal_right {
        width: 81px;
        height: 50px;
        display: flex;
        align-items: center;
        .personal_right_img {
          width: 24px;
          height: 24px;
          img {
            width: 100%;
            height: 100%;
          }
        }
        .personal_right_img1 {
          width: 24px;
          height: 24px;
          margin-left: 20px;
          img {
            width: 100%;
            height: 100%;
          }
        }
      }
    }
    .mainPart_filter {
      width: 100%;
      height: 36px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 20px;
      .mainPart_but {
        height: 36px;
        display: flex;
        align-items: center;
        .delete {
          width: 90px;
          height: 36px;
          background-image: linear-gradient(#e5743d, #e5743d),
            linear-gradient(#2090bc, #2090bc);
          background-blend-mode: normal, normal;
          border-radius: 18px;
          display: flex;
          align-items: center;
          justify-content: center;
          img {
            width: 18px;
            height: 18px;
            margin-right: 5px;
          }
          span {
            font-family: MicrosoftYaHei;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #ffffff;
            margin-left: 5px;
          }
        }
        .download {
          width: 90px;
          height: 36px;
          background-color: #0078b6;
          background-blend-mode: normal, normal;
          border-radius: 18px;
          display: flex;
          align-items: center;
          justify-content: center;
          margin: 0 22px 0 18px;
          img {
            width: 18px;
            height: 18px;
            margin-right: 5px;
          }
          span {
            font-family: MicrosoftYaHei;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #ffffff;
            margin-left: 5px;
          }
        }
        .report {
          width: 130px;
          height: 36px;
          background-color: #0078b6;
          border-radius: 18px;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-right: 40px;
          img {
            width: 18px;
            height: 18px;
            margin-right: 5px;
          }
          span {
            font-family: MicrosoftYaHei;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #ffffff;
            margin-left: 5px;
          }
        }
        .checkAll {
          font-family: MicrosoftYaHei;
          font-size: 16px;
          font-weight: normal;
          font-stretch: normal;
          letter-spacing: 0px;
          color: #333333;
        }
      }
      .mainPart_filter_tab {
        .ant-radio-group {
          height: 36px;
          border-radius: 10px;
          border: solid 1px #0078b6;
          .ant-radio-button-wrapper {
            background: none;
            font-family: MicrosoftYaHei;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #0078b6;
            height: 100%;
            border-top: 0;
            border-bottom: 0;
            border: 0;
          }
        }
      }
    }
    .content {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      .content_div {
        margin-top: 19px;
        display: flex;
        position: relative;
        .top {
          position: absolute;
          display: flex;
          align-items: center;
          img {
            width: 24px;
            height: 20px;
          }
          span {
            display: flex;
            width: 100px;
            font-size: 18px;
            color: #0f3d54;
            margin-left: 13px;
          }
        }
        .bottom {
          margin-right: 19px;
          margin-top: 29px;
          .bottom_con {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 176px;
            position: relative;
            .img {
              margin-top: 7px;
              width: 164px;
              height: 164px;
              background-color: #0078b6;
              border: solid 1px #0078b6;
              img {
                width: 100%;
                height: 100%;
              }
              video {
                width: 100%;
                height: 100%;
                object-fit: cover;
              }
            }
            .time {
              margin-top: 12px;
              width: 164px;
              height: 16px;
              font-size: 14px;
              color: #333333;
              display: flex;
              align-items: center;
              justify-content: space-between;
              margin-bottom: 10px;
            }
            .shadow {
              position: absolute;
              top: 7px;
              width: 162px;
              height: 30px;
              background-color: #343f4b;
              opacity: 0.7;
              display: flex;
              align-items: center;
              justify-content: center;
              .two {
                margin: 0 20px;
              }
              .one,
              .two,
              .three {
                cursor: pointer;
                width: 18px;
                height: 18px;
                display: flex;
                img {
                  width: 18px;
                  height: 18px;
                }
              }
            }
          }
          .fileBack {
            .img {
              width: 90px;
              height: 112px;
              img {
                width: 90px;
                height: 112px;
              }
            }
            .fileName {
              display: flex;
              margin-top: 6px;
            }
          }
        }
        .bottom_con:hover {
          background-color: rgba(0, 120, 182, 0.2);
          border-radius: 4px;
          border: solid 1px #0078b6;
        }
      }
    }
  }

  .avatar-uploader > .ant-upload {
    .uploadFile {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #8d99ac;
      .ant-upload-text {
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #8d99ac;
      }
    }
  }
  .ant-upload-select-picture-card i {
    font-size: 32px;
    color: #999;
  }

  .ant-upload-select-picture-card .ant-upload-text {
    margin-top: 8px;
    color: #666;
  }
  .importImg {
    width: 100%;
    max-height: 450px;
  }

  .top_but {
    padding: 20px;
    .but {
      width: 90px;
      height: 36px;
      background: #0078b6;
      border-radius: 18px;
      border: none;
      font-size: 16px;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        width: 18px;
        height: 18px;
        margin-right: 11px;
      }
    }
  }
  .center_message {
    padding: 0 20px;
    width: 100%;
    height: 85%;
    display: flex;
    .left {
      width: 50%;
      height: 100%;
      overflow-y: auto;
      overflow-x: none;
      border: 1px solid #d5d5d5;
      .left_one,
      .left_two,
      .left_three {
        width: 90%;
        height: 8%;
        display: flex;
        align-items: center;
        justify-content: space-around;
        .one {
          width: 20%;
          height: 100%;
          display: flex;
          align-items: center;
          font-size: 16px;
          color: #747474;
        }
        .two {
          width: 70%;
          height: 100%;
          display: flex;
          align-items: center;
          font-size: 16px;
          color: #333333;
        }
      }
      .left_four {
        width: 90%;
        display: flex;
        justify-content: space-around;
        .one {
          width: 20%;
          height: 100%;
          display: flex;
          align-items: center;
          font-size: 16px;
          color: #747474;
        }
        .two {
          width: 70%;
          height: 100%;
          display: flex;
          align-items: center;
          font-size: 16px;
          color: #333333;
        }
      }
    }
    .right {
      width: 50%;
      height: 100%;
      border: 1px solid #d5d5d5;
      border-left: none;
      .right_one {
        width: 100%;
        height: 80%;
        overflow-y: auto;
        overflow-x: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        overflow-y: auto;
        overflow-x: hidden;
        .assessPagination {
          position: absolute;
          bottom: 0;
        }
        .assess {
          width: 100%;
          display: flex;
          padding: 10px 0;
          border-bottom: 1px dashed #ddd;
          .assess_left {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin: 0 10px;
            img {
              width: 100%;
              height: 100%;
              border-radius: 50%;
            }
          }
          .assess_right {
            width: 78%;
            .top {
              width: 100%;
              display: flex;
              justify-content: space-between;
              .name {
                font-size: 16px;
                color: #333333;
              }
              .time {
                font-size: 16px;
                color: #b5b5b5;
              }
            }
            .bottom {
              width: 100%;
              display: flex;
              flex-wrap: wrap;
              font-size: 16px;
              color: #787878;
            }
          }
        }
      }
      .right_two {
        width: 100%;
        height: 20%;
        border-top: 1px solid #d5d5d5;
      }
    }
  }
  .AModalInspectTop {
    width: 964px;
    background: #fff;
    font-size: 16px;
    color: #333333;
    line-height: 50px;
    .top {
      width: 100%;
      display: flex;
      height: 100%;
      justify-content: space-between;
      .ming {
        width: 60px;
        font-size: 14px;
        display: inline-block;
        text-align-last: justify;
        text-align: justify;
        text-justify: distribute-all-lines;
        margin: 0 10px;
      }
      .heng {
        width: 120px;
        display: inline-block;
        // padding-left: 10px;
        border-bottom: 1px solid #dddddd;
      }
      .one,.two,.three,.four {
        display: flex;
      }
    }
    .bottom {
      width: 100%;
      display: flex;
      justify-content: space-between;
      .one,.two,.three,.four {
        display: flex;
      }
      .ming {
        width: 60px;
        font-size: 14px;
        display: inline-block;
        text-align-last: justify;
        text-align: justify;
        text-justify: distribute-all-lines;
        margin: 0 10px;
      }
      .heng {
        width: 120px;
        display: inline-block;
        // padding-left: 10px;
        border-bottom: 1px solid #dddddd;
      }
    }
  }
  .AModalInspectBottom {
    width: 100%;
    margin-top: 18px;
    .narcosis,
    .operation,
    .leave {
      width: 33%;
      min-height: 550px;
      border: 1px solid #e5e5e5;
      border-radius: 8px;
      background: #fff;
      .title {
        width: 100%;
        height: 32px;
        background: #ffefef;
        border-bottom: 1px solid #e5e5e5;
        border-radius: 8px 8px 0px 0px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        color: #8f8f8f;
      }
      img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
      }
    }
    .operation {
      .title {
        background: #fff9ef;
      }
      .statement {
        .statement_title {
          font-size: 14px;
          font-weight: bold;
          color: #0078b6;
          display: flex;
          line-height: 40px;
          padding-left: 10px;
        }
        .statement_operation {
          .statement_operation_title {
            font-size: 14px;
            color: #0078b6;
            line-height: 40px;
            display: flex;
            padding-left: 10px;
          }
        }
        .anesthesia {
          .statement_anesthesia_title {
            font-size: 14px;
            color: #0078b6;
            line-height: 40px;
            display: flex;
            padding-left: 10px;
          }
        }
      }
    }
    .leave {
      .title {
        background: #eff5ff;
      }
      .check3 {
        .leave_check3_title {
          font-size: 14px;
          display: flex;
          padding-left: 10px;
          line-height: 40px;
        }
      }
    }
  }
  .check2Div {
    width: 50%;
    display: flex;
    justify-content: flex-start;
    padding: 5px 0;
  }
}
</style>
<style>
.detailsWhole
  .ant-radio-group-solid
  .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  background-color: #0078b6 !important;
  color: #fff !important;
  border: 0;
}
.detailsWhole
  .ant-radio-group-solid
  .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):nth-child(1) {
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
}
.detailsWhole
  .ant-radio-group-solid
  .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):nth-child(6) {
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}
.detailsWhole .aModalImportFile .ant-modal-content {
  width: 480px !important;
  background: #ffffff !important;
  box-shadow: 0px 0px 20px 0px rgba(0, 120, 182, 0.6) !important;
  border-radius: 8px !important;
}
.detailsWhole .aModalImportFile .ant-modal-body {
  padding: 0 !important;
  margin: 10px 0 10px 0 !important;
}
.detailsWhole .aModalImportFile .ant-upload-picture-card-wrapper {
  display: flex !important;
  justify-content: center !important;
}
.detailsWhole .aModalImportFile .ant-upload.ant-upload-select-picture-card {
  width: 440px !important;
  height: 200px !important;
  background: #fff !important;
  border-radius: 4px !important;
}

.detailsWhole .aModalAssessment .ant-modal-content {
  width: 810px !important;
  height: 694px !important;
  box-shadow: 0px 0px 20px 0px rgba(0, 120, 182, 0.6) !important;
  border-radius: 8px !important;
}
.detailsWhole .aModalAssessment .ant-modal-body {
  padding: 0 !important;
  height: 660px !important;
}
.detailsWhole .aModalAssessment .ant-form.ant-form-horizontal {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  position: relative !important;
}
.detailsWhole .aModalAssessment .ant-form-item {
  margin-bottom: 0 !important;
}
.detailsWhole
  .aModalAssessment
  .ant-col.ant-col-14.ant-form-item-control-wrapper {
  width: 100% !important;
  height: 90%;
}
.detailsWhole .aModalAssessment .ant-btn.ant-btn-primary {
  position: absolute !important;
  right: -320px !important;
  background: #0078b6 !important;
  border-radius: 18px !important;
}
.detailsWhole .aModalAssessment .ant-input {
  min-height: 70px !important;
  max-height: 70px !important;
  border: none !important;
}

.detailsWhole .AModalInspect .ant-modal-content {
  width: 1000px !important;
  margin-left: -100px !important;
  box-shadow: 0px 0px 20px 0px rgba(0, 120, 182, 0.6) !important;
}

.detailsWhole .AModalInspect .ant-form-item-label {
  width: 60% !important;
  font-size: 14px !important;
  color: #333333 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start;
  padding-left: 10px !important;
}
.detailsWhole .AModalInspect .ant-row.ant-form-item {
  margin-bottom: 0 !important;
}
.detailsWhole .AModalInspect .aModalCheck1{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}
.detailsWhole
  .AModalInspect
  .check1
  .ant-col.ant-col-14.ant-form-item-control-wrapper {
  width: 40% !important;
}
.detailsWhole
  .AModalInspect
  .check1
  .check2
  .ant-col.ant-col-14.ant-form-item-control-wrapper {
  width: 100% !important;
}
.detailsWhole
  .AModalInspect
  .check1
  .check2 .ant-form-item-label > label {
    color: #0078B6 !important;
  }
  .detailsWhole
  .AModalInspect
  .check1
  .check2 .ant-form-item-children {
    width: 100% !important;
  }
.detailsWhole .AModalInspectBottom .ant-form.ant-form-horizontal {
  background: #eef3f6 !important;
  padding: 15px 25px !important;
  display: flex !important;
  justify-content: space-between !important;
  height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
}
.detailsWhole .AModalInspect .ant-modal-body {
  padding: 0 !important;
}
.detailsWhole .AModalInspect .ant-modal-footer {
  background: #eef3f6 !important;
}
.detailsWhole .AModalInspect .check2 .ant-checkbox-group {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  padding: 5px 10px !important;
  justify-content: space-between !important;
}
.detailsWhole .AModalInspect .operation .operationcheck2 .ant-checkbox-group {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  padding: 0 10px !important;
  justify-content: space-between !important;
}

.detailsWhole .AModalInspect .check2 .ant-checkbox-group .ant-checkbox-wrapper + .ant-checkbox-wrapper {
  margin-left: 0 !important;
}
.detailsWhole .AModalInspect .check2 .ant-checkbox-group .ant-checkbox-wrapper {
  width: fit-content !important;
  padding: 5px 0 !important;
}
.detailsWhole
  .AModalInspect
  .inp
  .ant-row.ant-form-item
  .ant-col.ant-col-4.ant-form-item-label {
  width: 84px !important;
}
.detailsWhole
  .AModalInspect
  .inp1.ant-row.ant-form-item
  .ant-col.ant-col-4.ant-form-item-label {
  width: 48px !important;
}
.detailsWhole .AModalInspect .inp .ant-row.ant-form-item .ant-input {
  width: 214px !important;
  border: none !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #dddddd !important;
}
.detailsWhole .AModalInspect .inp1.ant-row.ant-form-item .ant-input {
  width: 250px !important;
}

.detailsWhole
  .AModalInspect
  .statement
  .ant-row.ant-form-item
  .ant-col.ant-col-4.ant-form-item-label {
  width: 104px !important;
}
.detailsWhole
  .AModalInspect
  .statement
  .inp2.ant-row.ant-form-item
  .ant-col.ant-col-4.ant-form-item-label {
  width: 48px !important;
}
.detailsWhole .AModalInspect .statement .ant-row.ant-form-item .ant-input {
  width: 194px !important;
  border: none !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #dddddd !important;
}
.detailsWhole .AModalInspect .statement .inp1.ant-row.ant-form-item .ant-input {
  width: 194px !important;
}
.detailsWhole .AModalInspect .statement .inp2.ant-row.ant-form-item .ant-input {
  width: 250px !important;
}
.detailsWhole .AModalInspect .ant-btn,.detailsWhole .aModalImportFile .ant-btn  {
    width: 94px !important;
    height: 30px !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    color: #0376b7 !important;
    border: 1px solid #0376b7 !important;
    margin-right: 40px !important;
  }
  .detailsWhole .AModalInspect .ant-btn.ant-btn-primary,.detailsWhole .aModalImportFile .ant-btn.ant-btn-primary {
    width: 94px !important;
    height: 30px !important;
    border-radius: 30px !important;
    background-color: #0078b5 !important;
    font-size: 16px !important;
    color: #fff !important;
    margin-right: 10px !important;
  }
  .detailsWhole .AModalInspect .ant-modal-title {
    display: flex !important;
  }
  .detailsWhole .aModalInspect .ant-radio{
    background-image: url(../../../../images/home-showAll/unselected.png) !important;
    background-size: cover !important;
    background-size: 100% 100% !important;
  }
  .detailsWhole .aModalInspect .ant-radio input{
    display: none !important;

  }
  .detailsWhole .aModalInspect .ant-radio.ant-radio-checked .ant-radio-inner {
    border-radius: 0 !important;
    background-image: url(../../../../images/home-showAll/pitchOn.png) !important;
    background-size: cover !important;
    background-size: 100% 100% !important;
  }
  .detailsWhole .aModalInspect .ant-radio .ant-radio-inner {
    border-radius: 0 !important;
  }
  .detailsWhole .aModalInspect .ant-radio-inner::after {
    border-radius: 0 !important;
    background-color: rgba(0, 0, 0, 0) !important;
  }
  .detailsWhole .aModalInspect .ant-radio-group {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
</style>
